package com.cluster.platform.service;

import com.cluster.platform.common.api.CommonResult;
import com.cluster.platform.model.CmsCommentsInfo;

import java.util.List;

/**
 * 评论功能实现
 */
public interface CmsCommentsInfoService {

    /**
     * 新增评论信息
     */
    CommonResult<CmsCommentsInfo> addComments(CmsCommentsInfo cmsCommentsInfo);

    /**
     * 删除评论-逻辑
     */
    CommonResult<Object> deleteComments(String id);

    /**
     * 批量删除评论
     */
    CommonResult<Object> batchDeleteComments(List<CmsCommentsInfo> cmsCommentsInfos);

    /**
     * 查询所有评论信息
     */
    CommonResult<Object> searchComments(CmsCommentsInfo cmsCommentsInfo);

    /**
     * 分页查询所有评论信息
     */
    CommonResult<Object> searchCommentsPage(CmsCommentsInfo cmsCommentsInfo,Integer pageNum,Integer pageSize);

    // 根据文章id查询评论
    CommonResult<Object> searchCommentsByTopicId(String topicId);
}
